Repository navigation
Fix documentation errors in Org.Apache.Http.Message, Params, Protocol, Util (R119, pass 3) - #1998
Merged
jonathanpeppers merged 3 commits intoNov 28, 2026
Merged
Conversation
- HeaderGroup.Iterator(String): returns covers the name filter. - AbstractHttpMessage.HeaderIterator(): returns covers all headers. - BasicHeaderValueParser.ParseElements: returns notes empty elements are skipped. - BasicHeaderValueParser and BasicNameValuePair: correct the transfer parameter. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for this documentation-only clarification of existing API behavior.
No open issues 🎉
What changed in this PR
This PR corrects five documentation statements across four Org.Apache.Http.Message API files. It clarifies existing behavior without changing API signatures or runtime code.
Changes:
- Clarifies filtered header iteration, including null-name behavior, and unfiltered iteration over all headers.
- Documents that parsing excludes elements with an empty name and no value.
- Corrects constructor parameter descriptions for JNI reference release and peer registration.
| File | Description |
|---|---|
| docs/xml/Org.Apache.Http.Message/HeaderGroup.xml | Clarifies name filtering and null-name behavior in iterator return documentation. |
| docs/xml/Org.Apache.Http.Message/BasicNameValuePair.xml | Corrects the JNI ownership parameter description. |
| docs/xml/Org.Apache.Http.Message/BasicHeaderValueParser.xml | Corrects JNI ownership wording and documents excluded parser results. |
| docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml | Clarifies that the parameterless iterator returns all message headers. |
Review effort: Balanced
IHeaderValueParser.ParseElements: drop 'All'; the interface does not promise that every element in the buffer is parsed. HttpDateGenerator.CurrentDate: drop the null clause; getCurrentDate formats text on the first call because dateAsLong starts at 0. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Member
Author
|
@dalexsoto review |
AbstractHttpMessage.HeaderIterator() and HeaderGroup.Iterator() take no name, but their summaries said they return headers with a given name. Use the pinned Javadoc: HttpMessage.java:166 and HeaderGroup.java:259. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
dalexsoto
approved these changes
Nov 28, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
Reviewed the HTTP documentation updates against the Apache implementation, JNI handle-ownership behavior, and current target changes. The summaries and return-value descriptions are consistent; no blocking issues found. Static review only; no builds or tests were run.
jonathanpeppers
deleted the
jonathanpeppers-review-org-apache-http-r119
branch
November 28, 2026 18:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
b955f2129e79e3fcd6167f316fa01e3afc723be4↑ The changed XML parses,
git diff --checkis clean, and no placeholders were added.↑ The ledger has one row with a stated claim and a pinned source line for each of the 814 channels.
↑ The gemini-4-argon rubber-duck review of
b955f212found no issues.↑ The Copilot review of
b955f212recommends approval with no open issues.↓ The dalexsoto review is pending.
↓ The other 805 channels were judged correct by hand review; a missed error is still possible.
Pass-3 review of AI-authored documentation in
Org.Apache.Http.Message,Org.Apache.Http.Params,Org.Apache.Http.ProtocolandOrg.Apache.Http.Util(81 files, 814 AI-changed channels, including 2 summaries changed by this PR). Every channel was judged against pinned sources. The review found 9 errors and 0 uncertain rows.Pinned sources: AOSP
platform/external/apache-http@bc93e034and dotnet/android @9bc18c75(src/Mono.Android).Fixes
HeaderGroup.Iterator(String)returns: the text did not state the name filter. The iterator returns only headers with the specified name, and a null name gives all headers (HeaderGroup.java:279-281,BasicListHeaderIterator.java:135-142).AbstractHttpMessage.HeaderIterator()andHeaderGroup.Iterator()summaries: the old tool-generated text said these parameterless methods return headers with a given name. Each now uses the pinned Javadoc for the parameterless method (HttpMessage.java:166,HeaderGroup.java:259). Without this change, the summary contradicted the corrected returns text.AbstractHttpMessage.HeaderIterator()returns: the text said "matching headers", but this overload has no filter and returns all headers (AbstractHttpMessage.java:147-149,HeaderGroup.java:265-267).BasicHeaderValueParser.ParseElements(CharArrayBuffer, ParserCursor)returns: the text said "All parsed header elements", but elements that have an empty name and no value are dropped (BasicHeaderValueParser.java:131).IHeaderValueParser.ParseElements(CharArrayBuffer, ParserCursor)returns: same "All parsed header elements" claim on the interface. The interface does not promise this, and its implementation drops empty elements (BasicHeaderValueParser.java:131).HttpDateGenerator.CurrentDatevalue: the text said the value is null if no text has been generated.getCurrentDateformats text on the first call becausedateAsLongstarts at 0 (HttpDateGenerator.java:67,:78-80).transferparameter of the(IntPtr, JniHandleOwnership)constructors ofBasicHeaderValueParserandBasicNameValuePair: the text said ownership transfers to the instance. The peer makes its own reference;transferselects deletion of the incoming reference and peer registration (dotnet/androidObject.cs:110-118,JNIEnv.cs:360-393). The wording is the same as in Fix documentation errors in Android.App.PermissionUI (R060, pass 3) #1941.